package com.javaee.dao;


import com.javaee.entity.Teacher;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeacherDao {
    @Insert("insert into t_manager_teacher (id ,teacher_name, subject, profession, school, introduce, login_id) values(#{id}, #{teacher_name}, #{subject}, #{profession}, #{school}, #{introduce}, #{login_id})")
    public int add(Teacher teacher);

    @Select("select * from t_manager_teacher where id = #{id}")
    public Teacher getById(int id);
}
